package com.yxhl.zoume.core.busticket.model;

import com.yxhl.zoume.core.busticket.ui.info.ZMScheduleType;
import com.yxhl.zoume.data.http.model.base.BaseModel;

import java.util.List;

/**
 * Created by sugarya on 16/7/26.
 */
public class BusSelectCityEntity extends BaseModel {

    private String displayContent;
    private String cityCode;
    private List<ZMScheduleType> scheduleTypeList;

    public BusSelectCityEntity(String displayContent, String cityCode) {
        this.displayContent = displayContent;
        this.cityCode = cityCode;
    }

    public BusSelectCityEntity(String displayContent, String cityCode, List<ZMScheduleType> scheduleTypeList) {
        this.displayContent = displayContent;
        this.cityCode = cityCode;
        this.scheduleTypeList = scheduleTypeList;
    }

    public String getDisplayContent() {
        return displayContent;
    }

    public void setDisplayContent(String displayContent) {
        this.displayContent = displayContent;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public List<ZMScheduleType> getScheduleTypeList() {
        return scheduleTypeList;
    }

    public void setScheduleTypeList(List<ZMScheduleType> scheduleTypeList) {
        this.scheduleTypeList = scheduleTypeList;
    }

    @Override
    public String toString() {
        return "BusSelectCityEntity{" +
                "displayContent='" + displayContent + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", scheduleTypeList=" + scheduleTypeList +
                '}';
    }

    @Override
    public int hashCode() {
        return this.displayContent.hashCode() * 123;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof BusSelectCityEntity)) {
            return false;
        }

        BusSelectCityEntity p = (BusSelectCityEntity) obj;
        return this.displayContent.equals(p.displayContent);
    }
}
